package com.example.demo.zp.service;

import com.example.demo.zp.annotation.Trace;
import org.springframework.stereotype.Service;

/**
 * Created by ZhangPing on 2018/2/10.
 */
@Service
public class TestServiceImpl implements TestService {
    /**
     * @param name
     * @return
     */
    @Override
    @Trace(processName = "Test")
    public String doTest(String name) throws InterruptedException {
        System.out.println("Hello " + name);
        Thread.sleep(3000);
        return "Hello " + name;
    }
}
